package pl.umk.mat.fred.unicore.urc.storagemanagement.actions.findNavigation;

import org.eclipse.jface.action.Action;
import org.eclipse.ui.ISharedImages;
import org.eclipse.ui.PlatformUI;

import pl.umk.mat.fred.unicore.urc.storagemanagement.views.StorageBrowserView;

public class CloseNaviBarAction extends Action {

	public static final String NAME = "CloseNaviBarAction";
	private StorageBrowserView view;
	
	public CloseNaviBarAction(StorageBrowserView view) {
		super();
	  this.view = view;
	  this.setImageDescriptor(PlatformUI.getWorkbench().getSharedImages().getImageDescriptor(ISharedImages.IMG_TOOL_DELETE));
  }

	public void run() {
		System.out.println("Close run");
		view.removeNaviBarActions();
	}
	
}
